/* Foghorn风格的Markdown主题 */
.markdown-theme-foghorn {
  font-family: "Palatino Linotype", "Book Antiqua", Palatino, FreeSerif, serif;
  font-size: 16px;
  line-height: 1.6;
  color: #333;
  background-color: #f8f8f8;
  padding: 20px;
  max-width: 42em;
  margin: 0 auto;
}

.markdown-theme-foghorn h1,
.markdown-theme-foghorn h2,
.markdown-theme-foghorn h3,
.markdown-theme-foghorn h4,
.markdown-theme-foghorn h5,
.markdown-theme-foghorn h6 {
  font-weight: bold;
  margin-top: 1.5em;
  margin-bottom: 0.5em;
  color: #111;
}

.markdown-theme-foghorn h1 {
  font-size: 2.0em;
  line-height: 1.2;
  text-align: center;
  margin-bottom: 1.0em;
}

.markdown-theme-foghorn h2 {
  font-size: 1.5em;
  line-height: 1.3;
  margin-top: 2em;
}

.markdown-theme-foghorn h3 {
  font-size: 1.2em;
}

.markdown-theme-foghorn h4 {
  font-size: 1.1em;
}

.markdown-theme-foghorn p {
  margin-bottom: 1.5em;
}

.markdown-theme-foghorn a {
  color: #004b6b;
  text-decoration: none;
  border-bottom: 1px dotted #004b6b;
}

.markdown-theme-foghorn a:hover {
  color: #007eb4;
  border-bottom: 1px solid #007eb4;
}

.markdown-theme-foghorn blockquote {
  font-style: italic;
  margin-left: 1em;
  padding-left: 1em;
  border-left: 3px solid #ddd;
  color: #555;
}

.markdown-theme-foghorn code {
  font-family: Menlo, Monaco, 'Courier New', monospace;
  font-size: 0.9em;
  background-color: #eee;
  padding: 0.2em 0.4em;
  border-radius: 3px;
}

.markdown-theme-foghorn pre {
  background-color: #eee;
  padding: 16px;
  border-radius: 3px;
  margin: 1.5em 0;
  overflow-x: auto;
}

.markdown-theme-foghorn pre code {
  background-color: transparent;
  padding: 0;
}

.markdown-theme-foghorn img {
  max-width: 100%;
  margin: 1.5em auto;
  display: block;
}

.markdown-theme-foghorn hr {
  border: none;
  border-top: 1px solid #ddd;
  margin: 2em 0;
}

.markdown-theme-foghorn ul,
.markdown-theme-foghorn ol {
  margin-bottom: 1.5em;
  padding-left: 2em;
}

.markdown-theme-foghorn li {
  margin-bottom: 0.5em;
}

.markdown-theme-foghorn table {
  border-collapse: collapse;
  width: 100%;
  margin: 1.5em 0;
  border: 1px solid #ddd;
}

.markdown-theme-foghorn table th,
.markdown-theme-foghorn table td {
  border: 1px solid #ddd;
  padding: 8px 16px;
  text-align: left;
}

.markdown-theme-foghorn table th {
  background-color: #f0f0f0;
  font-weight: bold;
}

.markdown-theme-foghorn table tr:nth-child(even) {
  background-color: #f7f7f7;
}

/* 暗色模式 */
.dark-mode .markdown-theme-foghorn {
  color: #ddd;
  background-color: #222;
}

.dark-mode .markdown-theme-foghorn h1,
.dark-mode .markdown-theme-foghorn h2,
.dark-mode .markdown-theme-foghorn h3,
.dark-mode .markdown-theme-foghorn h4,
.dark-mode .markdown-theme-foghorn h5,
.dark-mode .markdown-theme-foghorn h6 {
  color: #f0f0f0;
}

.dark-mode .markdown-theme-foghorn a {
  color: #6ab0de;
  border-bottom: 1px dotted #6ab0de;
}

.dark-mode .markdown-theme-foghorn a:hover {
  color: #8bc8f0;
  border-bottom: 1px solid #8bc8f0;
}

.dark-mode .markdown-theme-foghorn blockquote {
  border-left: 3px solid #444;
  color: #aaa;
}

.dark-mode .markdown-theme-foghorn code {
  background-color: #333;
}

.dark-mode .markdown-theme-foghorn pre {
  background-color: #333;
}

.dark-mode .markdown-theme-foghorn hr {
  border-top: 1px solid #444;
}

.dark-mode .markdown-theme-foghorn table {
  border: 1px solid #444;
}

.dark-mode .markdown-theme-foghorn table th,
.dark-mode .markdown-theme-foghorn table td {
  border: 1px solid #444;
}

.dark-mode .markdown-theme-foghorn table th {
  background-color: #333;
}

.dark-mode .markdown-theme-foghorn table tr:nth-child(even) {
  background-color: #2a2a2a;
} 